<?php
namespace RMD\AccountBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class ListsType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options) {
        $builder->add('title', 'text');
        $builder->add('fromName', 'text', array('label' => 'From'));
        $builder->add('replyAddress', 'email');
        $builder->add('description', 'textarea', array('required' => false));		
    }

    public function getName() {
        return 'lists';
    }
    
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'RMD\AccountBundle\Entity\Lists',
            'intention'       => 'lists_item'
        ));
    }
}
?>
